package com.mzj.saas.mservice.bill.repository;

import com.mzj.saas.mservice.bill.entity.ExpenseBill;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

public interface ExpenseBillRepository extends PagingAndSortingRepository<ExpenseBill, Long>, JpaSpecificationExecutor<ExpenseBill>, JpaRepository<ExpenseBill, Long> {

    List<ExpenseBill> findByHouseIdAndPaymentStatus(String houseId, Integer paymentStatus);

    List<ExpenseBill> findByHouseIdAndPaymentStatusAndAuditStatus(String houseId, Integer paymentStatus, Integer auditStatus);

    List<ExpenseBill> findByIdIn(List<Long> ids);

}
